﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYS_USER.aspx.cs" Inherits="IYAKASAPortal.SYS_USER" %>

<%@ Import Namespace="Config" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript" src="../support/tfNiceTable/tfNiceTable.js"></script>
    <link type="text/css" rel="Stylesheet" href="../support/tfNiceTable/tfNiceTable.css" />
    <script type="text/javascript" src="../support/dTree205/dtree.js"></script>
    <link rel="StyleSheet" href="../support/dTree205/dtree.css" type="text/css" />
    <style type="text/css">
        body {
            overflow-y: scroll;
        }

        .auto-style1 {
            height: 29px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">

        <div id="divNiceTableMessage" class="tfNiceTableMessage" style="display: none;">正在处理...</div>
        <table border="0" width="100%" cellpadding="0" cellspacing="0" style="height: 25px;">
            <tr>
                <td class="main_title_left"></td>
                <td class="main_title_center">&nbsp;成都弥荣科技发展有限公司--角色管理页面</td>
                <td class="main_title_right"></td>
            </tr>
        </table>
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="mainWidth">
            <tr>
                <td>
                    <table border="1" cellspacing="0" cellpadding="2" class="tfNiceTable">
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btnSave" runat="server" Text="" CssClass="btnSaveEnabled" OnClick="btnSave_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 80px;">
                                <asp:Label ID="lblMnameLabel" runat="server" Text="选择角色"></asp:Label></td>
                            <td>
                                <asp:RadioButtonList ID="rbtnRole" runat="server" CssClass="table_without_border" RepeatColumns="4" AutoPostBack="True" OnSelectedIndexChanged="rbtnRole_SelectedIndexChanged" RepeatDirection="Horizontal"></asp:RadioButtonList>
                            </td>
                        </tr>

                        <tr>
                            <td valign="top">
                                <asp:Label ID="lblMpid" runat="server" Text="模块父节点"></asp:Label></td>
                            <td>
                                <div class="dtree">
                                    <script type="text/javascript">
		                            <!--
                                         d = new dTree('d');
		                                 <%=g_strTreeJS%>
                                         document.write(d);
                                         d.openAll();
                                    //-->
                                    </script>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <br />
                </td>
            </tr>
        </table>

    </form>
</body>
</html>
<script type="text/javascript" src="../script/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
    $(function () {
        $(":input[name='rn']").click(function () {
            var childRadio = $(this).parent(".dTreeNode").next(".clip").find(":checkbox");
            if (this.checked) {
                var items = childRadio.prop("checked", true);
            } else {
                var items = childRadio.prop("checked", false);
            }
        });

        $(":input").click(function () {
            //if (this.checked) {
                var parentRadio = $(this).parents(".clip").prev(".dTreeNode").find(":checkbox");
                if (parentRadio.prop("checked") == false) {
                    parentRadio.prop("checked", true);
                }
            //}
        });
    });
</script>

